﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>"/>
<link rel="shortcut icon" href="images/store.png" /><!--图片log  -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<link href="css/base.css?v=051801" rel="stylesheet">
<link href="css/mine.css?v=0512" rel="stylesheet">
<title>个人中心</title>
</head>
<body style="padding-bottom: 60px;">
    <div class="by_w" id="by_w">
        <div class="relative">
            <div class="m_pagetop" align="center">
                <span class="m_goback" onclick="document.location.href = 'javascript:history.go(-1)';"></span>
                <span class="m_title">个人中心</span>
            </div>
        </div>
        <div class="m_mtitle">
            <div class="m_ml">
                <img width="80px" height="80px"  src="images/store.png" />
            </div>
            <div class="m_mr">
                <div class="m_mt escp">
                   	${user.dwmch}
                </div>
            </div>
        </div>
        <div class="menu">
            <ul>
                <li><a href="javascript:void(0);" onclick="pay()"><span class="cart_i_p" style="display:none">${map.get("upCnt")}</span><span><img src="images/r_icon1.jpg" /></span><p>待付款</p></a></li>
                <li><a href="javascript:void(0);" onclick="receive()"><span class="cart_i_p" style="display:none">${map.get("udCnt")}</span><span><img src="images/r_icon3.jpg" /></span><p>待发货</p></a></li>
                <li><a href="javascript:void(0);" onclick="comment()"><span class="cart_i_p" style="display:none">${map.get("idCnt")}</span><span><img src="images/r_icon2.jpg" /></span><p>已发货</p></a></li>
                <li><a href="javascript:void(0);"><span class="cart_i_p" style="display:none">0</span><span><img src="images/r_icon4.jpg" /></span><p>退款/售后</p></a></li>
            </ul>
        </div>
        <div class="m_wap mg_t12" id="m_wap" align="center" style="min-height: 188px;">
            <a href="javascript:void(0);" onclick="myorder()" class="m_mdlzy touri"><i class="c_vvv c_v2 f_l"></i><span class="f_l c_vname">我的订单</span></a>
            <!-- <a href="javascript:void(0);"  class="m_mdlzy mg_t12 touri"><i class="c_vvv c_v16 f_l"></i><span class="f_l c_vname">客服中心</span></a> -->
            <a href="javascript:void(0);" onclick="logout()" class="m_mdlzy mg_t12 touri"><i class="c_vvv c_v16 f_l"></i><span class="f_l c_vname">退出登录</span></a>
        </div>
    </div>

	<div><jsp:include page="part/foot.jsp"></jsp:include></div>
<script src="js/jquery-1.8.3.min.js"></script>	
<script>
    function myaddress() {
         var userid = shop.getLocalStorage("userid");
         if (userid != null && userid != "") {
             window.location.href = "/Address/Index?userid=" + userid;
         }
     };
    function pay() {
        //var userid = shop.getLocalStorage("userid");
        //var userid=${user.dwbh}
        //if (userid != null && userid != "") {
            window.location.href = "Shop/OrderList?orderstatus=1&sjid=${sjid}";
        //}
    };

    function receive() {
        //var userid = shop.getLocalStorage("userid");
       // var userid=${user.dwbh}
        //if (userid != null && userid != "") {
            window.location.href = "Shop/OrderList?orderstatus=2&sjid=${sjid}";
       // }
    };

    function comment() {
        //var userid = shop.getLocalStorage("userid");
        //var userid=${user.dwbh}
        //if (userid != null && userid != "") {
            window.location.href = "Shop/OrderList?orderstatus=3&sjid=${sjid}";
       // }
    };
    function myorder() {
        //var userid = shop.getLocalStorage("userid");
       // var userid=${user.dwbh}
       // if (userid != null && userid != "") {
            window.location.href = "Shop/OrderList?orderstatus=0&sjid=${sjid}";
        //}
    };
    function logout(){
    	window.location.href="Logout?sjid=${sjid}";
    }
    
    $(function(){
    	 $(".cart_i_p").each(function(){
    		//如果数字不为0，显示数字
         	if($(this).html()>0){
         		$(this).show();
         	}
         })
    })
</script>
</body>
</html>